package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.DisconnectObject;

/**
 * @author Bright Lee
 */
public final class DisconnectStatement implements SqlConnectionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private DisconnectObject disconnectObject;

    public DisconnectStatement(int beginIndex, DisconnectObject disconnectObject) {
        this.beginIndex = beginIndex;
        this.endIndex = disconnectObject.getEndIndex();
        this.disconnectObject = disconnectObject;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public DisconnectObject getDisconnectObject() {
        return disconnectObject;
    }

}
